package com.moss.cloud.common.security.event;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DemoEvent extends AbstractEvent {
    private static final long serialVersionUID = 1L;
    private String msg;

    public DemoEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
    }

    @Override
    public void execute() throws InterruptedException {
        Thread.sleep(1000);
        log.info("示例执行发布的事件source:{},msg:{}", source, msg);
    }
}
